<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$bar="List Experience of <strong>".$FullName."</strong>";
        echo '<table id="box-table-a" cellspacing="1" align="right" width="900px">';
        //echo '<tr><td><input type=text value='.$Staff_ID.'></td></tr>';
        echo '<tr><td colspan=6 align=right class=bar>'.$bar.'</td></tr>';
        //echo '<tr><td colspan=5 align=right class=bar>'.$total_rows.'</td></tr>';
        echo '<tr><td colspan=6 align=right class=pagination>'.$pagination.'</td></tr>';
        echo '
              <th>Education</th>
                <th>Previous Position</th>
              <th>Company</th>
              <th>Industry</th>
              <th>Year</th>
              <th>Action</th>';
        foreach($query->result() as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        <td class=\"row10\">$row->Education</td>
                        <td class=\"row12\">$row->PreviousPosition</td>
                        <td class=\"row10\">$row->Company</td>
                        <td class=\"row12\">$row->Industry</td>
                        <td class=\"row10\">$row->Year</td>";
            $titleUpdate = '<img src ="'.base_url().'templates/images/icons/edit.gif" title="Click here to modify"/>';
            $titleDelete = '<img src ="'.base_url().'templates/images/icons/delete.png" title="Click here to delete" onclick="return checkLink();"/>';
            //$titleActive = '<img src ="'.base_url().'application/templates/images/icons/active.jpg" title="Click here to active"/>';
            //$titleView = '<img src ="'.base_url().'templates/images/icons/view.gif" height=25 title="Click here to view "/>';
            //$titleViewSalary = '<img src ="'.base_url().'templates/images/icons/view_salary.jpeg" height=25 title="Click here to view salary "/>';
            //$titleInsertFamily = '<img src ="'.base_url().'templates/images/icons/insert_family.jpeg" width=40 height=25 title="Click here to insert family"/>';
            $ES_ID=$row->Experience_ID."-".$Staff_ID;
            $update = anchor("staff/loadExperienceUpdateForm/$ES_ID",$titleUpdate);
            $delete = anchor("staff/deleteExperienceStaff/$ES_ID",$titleDelete);
            //$active = anchor("user/loadConfirmForm/$row->Staff_ID",$titleActive);
            //$view=anchor("staff/viewInformation/$row->Staff_ID",$titleView);
            //$view_salary=anchor("salary/viewSalaryStaff/$row->Staff_ID",$titleViewSalary);
            //$insert_family=anchor("staff/loadListFamily/$row->Staff_ID",$titleInsertFamily);
            
            echo "<td class=\"row12\" align=\"center\">$update $delete</td></tr>";
            }
            $titleExperience = '<img src ="'.base_url().'templates/images/icons/ex.jpeg" width=40 height=25 title="Click here to add experience"/>';
            $experience = anchor("staff/loadFormInsertExperience/$Staff_ID",$titleExperience);
            $titleback = '<img src ="'.base_url().'templates/images/icons/back.jpg" width=40 height=25 title="Back"/>';
            $back = anchor("staff/index",$titleback);
            echo '<tr><td colspan=6 align=center>'.$experience .$back.'</td></tr>';
            //echo '<tr><td colspan=5 align=right class=pagination>'.$pagination.'</td></tr>';
        echo '</table>';
?>
